widget-factory: Add an entry completion
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Dec 2015 19:11:06 +0000 (14:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Dec 2015 19:11:06 +0000 (14:11 -0500)
This was missing so far.

demos/widget-factory/widget-factory.ui

index 69f3685afee5327d11db5a89183d8bf969ce11d9..54debed788fdf0b83bbd50ac18d3b41d356ee17f 100644 (file)
       </row>
     </data>
   </object>
+  <object class="GtkEntryCompletion" id="name_completion">
+    <property name="model">liststore1</property>
+    <property name="text-column">2</property>
+    <property name="inline-completion">1</property>
+    <property name="popup-single-match">0</property>
+    <property name="inline-selection">1</property>
+    <child>
+      <object class="GtkCellRendererText"/>
+      <attributes>
+        <attribute name="text">2</attribute>
+      </attributes>
+    </child>
+  </object>
   <object class="GtkListStore" id="lrmodel">
     <columns>
       <column type="gchararray"/>
@@ -3630,6 +3643,7 @@ microphone-sensitivity-medium-symbolic</property>
                             <property name="visible">1</property>
                             <property name="can_focus">1</property>
                             <property name="placeholder_text" translatable="yes">Name…</property>
+                            <property name="completion">name_completion</property>
                           </object>
                         </child>
                         <child>